<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">
    <title>Document</title>
</head>

<style>
* {
  margin: 0;
  padding: 0;
}


#parallax_wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  perspective: 5000px;
}

#parallax_wrapper img {
  position:fixed;
  top: 30px;
  left: 10px;
  width: 1200px;
  height: 900px;
  transition: .1s;
}

.btn-53,
.btn-53 *,
.btn-53 :after,
.btn-53 :before,
.btn-53:after,
.btn-53:before {
  border: 0 solid;
  box-sizing: border-box;
}

.btn-53 {
  -webkit-tap-highlight-color: transparent;
  background-color: #000;
  background-image: none;
  color: #fff;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,
    Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-size: 100%;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.btn-53:disabled {
  cursor: default;
}

.btn-53:-moz-focusring {
  outline: auto;
}

.btn-53 svg {
  display: block;
  
}

.btn-53 [hidden] {
  display: none;
}

.btn-53 {
  border: 1px solid;
  border-radius: 999px;
  box-sizing: border-box;
  display: block;
  font-weight: 900;
  overflow: hidden;
  padding: 1.2rem 3rem;
  position: relative;
  text-transform: uppercase;
}

.btn-53 .original {
  background: #fff;
  color: #000;
  display: grid;
  inset: 0;
  place-content: center;
  position: absolute;
  transition: transform 0.2s cubic-bezier(0.87, 0, 0.13, 1);
}

.btn-53:hover .original {
  transform: translateY(100%);
}

.btn-53 .letters {
  display: inline-flex;
}

.btn-53 span {
  opacity: 0;
  transform: translateY(-15px);
  transition: transform 0.2s cubic-bezier(0.87, 0, 0.13, 1), opacity 0.2s;
}

.btn-53 span:nth-child(2n) {
  transform: translateY(15px);
}

.btn-53:hover span {
  opacity: 1;
  transform: translateY(0);
}

.btn-53:hover span:nth-child(2) {
  transition-delay: 0.1s;
}

.btn-53:hover span:nth-child(3) {
  transition-delay: 0.2s;
}

.btn-53:hover span:nth-child(4) {
  transition-delay: 0.3s;
}

.btn-53:hover span:nth-child(5) {
  transition-delay: 0.4s;
}

.btn-53:hover span:nth-child(6) {
  transition-delay: 0.5s;
}



body{
    background-color:black;
}
.cont__inner{
    position: relative;
    margin:0;
    padding:0;
}
.el__topic{
    position:absolute;
    color:white;
    top:0px;
    right:0;
    height:20%;   
}
.el__chtopic{
    font-size: 100px;
    font-weight: 200;
}
.el__entopic{
    font-size:25px;
    font-weight: 15;
    text-align: center;
    letter-spacing: 6.5px;
}
.el__btns{
    position: absolute;
    right:0;
    top:40vh;
    font-size: 25px;
    font-weight: 50;
    height:33%;
    color:white;
}
.el__sign{
    position: fixed;
    right:10px;
    top:95vh;
    z-index:0;
    height:5%;
    color:white;
}
.btn__start:hover,.btn__acount:hover,.btn__history:hover,.btn__about:hover{
   color: aqua;
   background-color: rgba(255, 255, 255,0.3);
}
ul li{
	position: absolute;
	border:1px solid #FFFFFF;
	background-color: #FFFFFF;
	width: 30px;
	height: 30px;
	list-style: none;
	opacity: 0;
}
.square li{
	top: 40vh;
	left: 60vw;
	animation: square 10s linear infinite;
}
.square li:nth-child(2){
	top: 80vh;
	left: 10vw;
	animation-delay: 2s;
}
.square li:nth-child(3){
	top: 80vh;
	left:85vw;
	animation-delay: 4s;
}
.square li:nth-child(4){
	top: 10vh;
	left: 70vw;
	animation-delay: 6s;
}
.square li:nth-child(5){
	top: 10vh;
	left: 10vw;
	animation-delay: 8s;
}
.circle li{
	bottom: 0;
	left: 15vw;
	animation: circle 10s linear infinite;
}
.circle li:nth-child(2){
	left: 35vw;
	animation-delay: 2s;
}
.circle li:nth-child(3){
	left: 55vw;
	animation-delay: 6s;
}
.circle li:nth-child(4){
	left: 75vw;
	animation-delay: 4s;
}
.circle li:nth-child(5){
	left: 90vw;
	animation-delay: 8s;
}

@keyframes square{
	0%{
		transform: scale(0) rotateY(0deg);
		opacity: 1;
	}
	100%{
		transform: scale(5) rotateY(1000deg);
		opacity: 0;
	}
}
@keyframes circle{
	0%{
		transform: scale(0) rotateY(0deg);
		opacity: 1;
		bottom: 0;
		border-radius: 0;
	}
	100%{
		transform: scale(5) rotateY(1000deg);
		opacity: 0;
		bottom: 90vh;
		border-radius: 50%;
	}
}

</style>
<body>
    <div class="cont">
        
        <div id="parallax_wrapper">
            <div class="square">
                <ul>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                </ul>
            </div>

            <div class="circle">
                <ul>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                </ul>
            </div>
            <img id="parallax_lihui" src="立绘.png" alt="lihui" />
            
        </div>

        <div class="cont__inner">
            <div class="el__topic">
                <div class="el__chtopic">碉堡音游</div>
                <div class="el__entopic">DOPEST RHYTHM GAME</div>
            </div>
            <div class="el__btns">

                <button class="btn-53"><a style="text-decoration: none;" href="main.html">
                    <div class="original">Start</div>
                    <div class="letters">
                      
                      <span>开</span>
                      <span>始</span>
                      <span>游</span>
                      <span>戏</span>
                    </a>
                    </div>
                  </button>
                  
                  <button class="btn-53"><a style="text-decoration: none;" href="aboutus.html">
                    <div class="original">ABOUT</div>
                    <div class="letters">
                      
                      <span>关</span>
                      <span>于</span>
                      <span>我</span>
                      <span>们</span>
                    
                    </a>
                    </div>
                  </button>
                
                  <button class="btn-53"><a style="text-decoration: none;" href="login.html">
                    <div class="original">LOGOUT</div>
                    <div class="letters">
                      
                      <span>退</span>
                      <span>出</span>
                      <span>登</span>
                      <span>录</span>
                      
                    </a>  
                    </div>
                  </button>

            </div>
            <div class="el__sign">
                by ECUSTers <br>
                ver:1.0.1
            </div>
        </div>
    </div>
</body>
<script>
    const parallaxWrapper = document.querySelector('#parallax_wrapper')

parallaxWrapper.addEventListener('mousemove', (e) => {
  const range = 10
  let horizontal = (e.clientX / parseInt(getComputedStyle(parallaxWrapper).width, 10)) * range - range / 2
  let vertical = (e.clientY / parseInt(getComputedStyle(parallaxWrapper).height, 10)) * range - range / 2

  document.querySelector('#parallax_lihui').style.transform = calcTransform(horizontal, vertical, 3)
  document.querySelector('#parallax_cloud').style.transform = calcTransform(horizontal, vertical, 8)
})

function calcTransform(horizontal, vertical, offset) {
  return `translate3d(${horizontal * offset}px, ${
    vertical * offset
  }px, 0) rotateX(${-vertical}deg) rotateY(${horizontal}deg)`
}
  </script>
</html>